﻿using System;
using System.ComponentModel;
using System.Drawing;

namespace MJTop.Common
{
    [TypeConverter(typeof(ExpandableObjectConverter))]
    public class CaptchaFontArrayItem
    {
        private Font authCodeFont;

        [Category("Behavior")]
        [Description("验证码字符候选字体")]
        [NotifyParentProperty(true)]
        public Font AuthCodeFont
        {
            get
            {
                return this.authCodeFont;
            }
            set
            {
                this.authCodeFont = value;
            }
        }

        public CaptchaFontArrayItem()
        {
            this.authCodeFont = SystemFonts.DefaultFont;
        }

        public CaptchaFontArrayItem(Font font)
        {
            this.authCodeFont = font;
        }
    }
}